<?php
namespace Home\Controller;
use Think\Controller;
class NewsController extends CommonController {

	public function _initialize(){
		parent::_initialize();	
	 	$this->model="news"; //表名
	 	$this->key="news_sort";//排序键		 
	 	$this->title_index=L("news");//选项卡标题	
	}	
	
	public function index(){
		$mist_arr=array("news_title"=>I("news_title"));
		$accute_arr=array("news_type"=>I("news_type"));
		$cookie_arr=array();	
		$con=searchCon($mist_arr,$accute_arr,$cookie_arr);
		$con['news_lang']=cookie("think_language");
		$con['news_status']=1;		
		parent::home($con);
	}	
	
	public function details(){
		$con['news_status']=1;	
		$con['news_id']=I("path.2");
		$con['news_lang']=cookie("think_language");
		parent::details($con);	
	}
	
}

